package sandbox.controller;

import org.slim3.controller.Controller;
import org.slim3.controller.Navigation;
import org.slim3.datastore.Datastore;

import sandbox.model.SiteInfo;

/**
 * 
 * @author k-yanagihara
 */
public class SiteRegistController extends Controller {

    @Override
    public Navigation run() {
        SiteInfo siteInfo = SiteInfo.create(
            param("title"), 
            param("url"), 
            param("taskUrl"));
        Datastore.put(siteInfo);
        
        return redirect("/siteList");
    }
}
